package com.suzj.extraenchantments.enchant.Ench_01;

import com.suzj.extraenchantments.Config;
import com.suzj.extraenchantments.enchant.EnchantmentTypeEE;
import net.minecraft.world.entity.EquipmentSlot;
import net.minecraft.world.item.enchantment.Enchantment;



public class EnchantmentKnightsShield extends Enchantment {
    public EnchantmentKnightsShield() {
        super(Enchantment.Rarity.COMMON, EnchantmentTypeEE.TYPE_SHIELD, new EquipmentSlot[]{EquipmentSlot.MAINHAND,EquipmentSlot.OFFHAND});
    }

    public int getMaxLevel() {
        if (Config.SERVER.isKnightsShield.get().booleanValue()) {
            return 1;
        }
        return 0;
    }

    public int getMinCost(int enchantmentLevel) {
        return 30;
    }

    public int getMaxCost(int enchantmentLevel) {
        return 30;
    }

    public boolean isTreasureOnly() {
        return true;
    }
}